﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XmlRuleBuilder
{
    public static class Helper
    {
        public static string MacroReplacement(string input, Macro macro)
        {            
            return input.Replace("$ENTITYTYPE$", macro.EntityType)
                .Replace("$NSENTITYTYPE$", macro.NSEntityType)
                .Replace("$URI$", macro.Uri)
                .Replace("$LSURI$", macro.LSUri);
        } 
    }
}
